Allow the user to choose mode from map #308
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change allows the user to change the mode of their previous trip. The original sensed mode is not changed, an object mode_confirm is added to the section of the trip. mode_confirm includes the ts, tripId, sectionId, mode value and mode text. The user can change the mode by tapping on the section
lineString
of the leaflet map. We already have a listener to receive incident of a trip if the user presses on the trip or sectionlineString
. So to make things simple, a button is included in the detail screen to take user to edit mode screen. After the user pick all the modes they can either save or cancel their edit. While editing thelineString
does not change color to show the mode, however, there is a temporary marker on the line to show where the user split the trip. After they save the color changes to show the respective modes. Also, the list screen only showschoose mode
button for single mode trips.the mode_confirm object has {end_ts, label, start_ts, trip_mode} keys
Done: Add more colors to represent each mode in the set
Done: Change Detail and List sensed mode icons to mode_confirm mode icon
I was not able to complete the following:
Get the mode_confirm from the server